-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be stricter with side effects in VERIFY #1485
base: master
Are you sure you want to change the base?
Be stricter with side effects in VERIFY #1485
Conversation
size_t i_ver; | ||
for (i_ver = 0; i_ver < len; i_ver++) { | ||
SECP256K1_GE_VERIFY(&r[i_ver]); | ||
} | ||
} | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These loops caught my attention initially. Here we set i
inside VERIFY
block, but we also use it outside. I think this should be avoided out of an abundance of caution.
a24dd53
to
690a890
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK
690a890
to
f65f1a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-review ACK f65f1a4
f65f1a4
to
f3b91f0
Compare
thanks, rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK f3b91f0
Adds a rule to CONTRIBUTING.md and makes the code adhere to it.
f3b91f0
to
ee7083f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK ee7083f
(only whitespace fixes since my previous ACK)
Adds a rule to CONTRIBUTING.md and makes the code adhere to it.